Repository navigation
Let menu select confirm a pick in place - #18956
charlielockyer-rice wants to merge 2 commits into
Conversation
With -- --confirm <message> (and --confirm-label), choosing a row opens the menu's existing Cancel/Confirm prompt over the list instead of returning, so an "are you sure?" step no longer closes and reopens the menu. %1 in the message is the picked label, and Cancel starts focused. The prompt belongs to the request it was asked in: a new request summoned while it is open closes it, so it never returns the old pick to the new caller. Cancel, Escape or a click outside it goes back to the list with the search and keyboard focus kept. The Apps menu's uninstall prompt, the same dialog, keeps closing the whole menu on a click past its edge. Confirm buttons size to their labels, at least the old width, and the longer one elides when a narrow card can't hold both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR reaches the select-menu flow and shared confirmation dialogs across several screens. Move the fixture runner into the existing menu test before merging to satisfy the repository's test-layout requirement. Findings
SummaryAdds an in-place confirmation prompt for single menu picks.
Reviews (3) · Last reviewed commit: "Send real key presses in the menu select..." · Reviewed by Greptile |
Calling the dialog's handleKey() skipped the search line and the key catcher, so the fixture passed even if Escape or Enter stopped reaching the prompt. Press the keys in the menu's window instead, and check that Enter takes the focused Cancel back to the list with no pick. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| printf '#!/bin/bash\nexit 0\n' >"$QML_FIXTURE_TMP/bin/omarchy-shell" | ||
| chmod +x "$QML_FIXTURE_TMP/bin/omarchy-shell" | ||
|
|
||
| run_qml_fixture menu-select-confirm "menu select confirms a pick in place, and the Apps menu's uninstall prompt still closes on an outside click" Ui Commons |
There was a problem hiding this comment.
The new menu-select-confirm-test.sh adds a separate test entry point even though menu-test.sh already covers this feature. AGENTS.md requires extending the area's existing test file rather than adding another *-test.sh. Keep the QML fixture, but run it from the existing menu test before merging.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Note
Written by Claude Opus 5.5 (
claude-opus-5-5) on behalf of Charlieomarchy-menu-select … -- --confirm <message> [--confirm-label <text>]opens the menu's existing Cancel/Confirm prompt over the list when a row is picked, instead of returning. An "are you sure?" step no longer closes and reopens the menu.%1in the message is the picked label, and Cancel starts focused. It can't be combined with--multiple.Tests:
menu-test.shcovers the payload and the--multiplerejection. The newmenu-select-confirm-test.sh(exclusive) drives the real menu through confirming, Cancel/Escape/outside click, search and focus being kept, a stale prompt not answering a new request, narrow buttons, and the uninstall prompt's outside click.Note: open PR #18024 (headings) touches the same files (
bin/omarchy-menu-select,docs/menu.md,Menu.qml,menu-test.sh). Whichever lands second will need a small rebase.🤖 Generated with Claude Code